﻿using System;
using System.Reflection;

namespace Drive.AlertSystem
{
    /// <summary>
    /// 标记一个类或方法，当发生异常时作为告警信息的补充或者为告警信息分类
    /// </summary>
    public class AlertEventSourceAttribute : Attribute
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="product"></param>
        /// <param name="bizname"></param>
        public AlertEventSourceAttribute(string product, string bizname)
        {
            this.product = product;
            this.bizname = bizname;
        }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string product { get; set; }
        /// <summary>
        /// 业务名称
        /// </summary>
        public string bizname { get; set; }
    }
}
